package monster.flight.comm.entity.dao;
import java.util.List;
import monster.flight.comm.entity.vo.Xt_men;

public interface Xt_menDAO {

	/**
	*@Description: 返回所有菜单
	  
	*@return List<Xt_men>    
	 */
	public List<Xt_men> getAllMenu();
	/** 
	*@Description: 新增菜单
	*@param xt_men
	
	*@return void    
	 */
	public void insert(Xt_men xt_men) ;
	/** 
	*@Description: 根据主键更新菜单
	*@param xt_men
	  
	*@return void    
	 */
	public void update(Xt_men xt_men) ;
	/** 
	*@Description: 根据fomcat删除菜单包括子菜单
	*@param xt_men
	  
	*@return void    
	 */
	public void deleteMenAndChild(String fomcat) ;
	/**
	*@Description: 判断传入的菜单ID是否有子节点
	*@param id
	  
	*@return 大于1有0无  
	 */
	public int  isHasChildren(String id) ;
	/**
	*@Description: 根据主键返回菜单
	*@param id
	  
	*@return Xt_men    
	 */
	public Xt_men getPoByID(String id) ;
	/**
	 * @Description: 校验menu_code的唯一性
	 * @param menu_code
	 * @param old_menu_code
	 * @return >0 存在数据，不唯一
	 * @throws Exception
	 */
	public int vild_MenuCode(String men_code);
}
